15 Count Items in [13 slugs] »
16 If [15 Count] > 1
17 Choose from List [13 slugs]
ChooseFromListActionPrompt
: 🤖 Which one?
18 Otherwise
19 Get Text from [13 slugs]
20 End If » 21 26
21 Open URL [7 baseURL] /work/quotes/[20 If Result]
22 Repeat with Each in [13 slugs]
23 Set Dictionary Value for [Repeat Item] to [Repeat Index] in [dict] »
24 Set Variable dict to [23 Dictionary]
25 End Repeat with Each
26 Get Dictionary Value for [20 If Result] in [dict] ➔ idx » 29
27 Match Text <a class="bookTitle" itemprop="url" href="(.*?)" in [11 HTML from Rich Text] »
28 Get Match Group At Index 1 in [27 Matches] »
29 Get Item At Index [26 idx] from List [28 Text] »
30 Get Contents of URL [7 baseURL] [29 Item from List] »
31 Make HTML from Rich Text [30 Contents of URL] »
32 Match Text <script type="application/ld\+json">(.*?)</script> in [31 HTML from Rich Text] »
33 Get Match Group At Index 1 in [32 Matches] »
34 Get Dictionary from [33 Text] » 35 36 42
35 Get Dictionary Value for author.1.name in [34 Dictionary] ➔ author » 39 44
36 Get Dictionary Value for name in [34 Dictionary] ➔ title »
37 Split Text [36 title] by Custom »
38 Get First Item from List [37 Split Text] ➔ title » 39 44
39 Text »
40 Make Rich Text from HTML [39 Text] »
41 Run Shortcut 📥 Add to Inbox
Input
: [40 Rich Text from HTML]
Workflow
: { "workflowIdentifier": "BD94B8A5-33FB-409C-BF55-0BD26765BC95",
"workflowName": "📥 Add to Inbox",
"isSelf": false
}
42 Get Dictionary Value for isbn in [34 Dictionary] ➔ isbn »
43 Copy [42 isbn] to Clipboard
44 Text »
Summarize the book <[38 title] > by [35 author] , and give me a list of the most important insights, takeaways, and actionable tips/advice from this book.
45 Dictionary »
{ "content": "[44 Text] " }
46 Run Shortcut ChatGPT
Workflow
: { "workflowIdentifier": "ECDBC6E3-6ECC-4F80-88FE-C6F637DEFA19",
"workflowName": "ChatGPT",
"isSelf": false
}